package com.example.es.rest.vo;

import com.google.common.collect.Lists;
import lombok.Data;
import java.util.List;

/**
 * @Title:
 * @Author: wangsai
 * @Date: 2020/1/21 08:34
 * @Description:
 */
@Data
public class QueryVO {

    private Long id;
    /*
     * @Name: 品牌名称
     * @Example: ["小米", "华为"]
     * @Description:
     */
    private List<String> brands = Lists.newArrayList();
    /*
     * @Name: 分类id (1-手机 | 2-笔记本)
     * @Example: 1
     * @Description:
     */
    private Long category;
    /*
     * @Name: 商品名称
     * @Example: 小米9pro 5G版手机 钛银黑 12G+512G
     * @Description:
     */
    private String name;

    /*
     * @Name: 规格参数
     * @Example: [
        {
            "attrName": "颜色",
            "attrValues": ["黑色"]
        },
        {
            "attrName": "内存",
            "attrValues": ["64G", "128G"]
        }
     ]
     * @Description:
     */
    private List<AggVO.AttrGroup> attrs = Lists.newArrayList();
}
